#!/bin/bash
echo Rebuilding monitord distribution tgz...
rm -rf OUT
mkdir OUT
cp crawld.py OUT
chmod 755 OUT/crawld.py
cp Client.jar OUT
echo Creating archive...
cd OUT
mkdir crawld
mv * crawld
tar -cvzf crawld.tgz crawld
echo Cleaning up...
mv crawld.tgz ..
cd ..
rm -rf OUT
echo Done!
